package com.example.config;

import com.example.interceptor.TokenInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.lang.NonNull;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class InterceptorConfig implements WebMvcConfigurer {


    public void addInterceptors(@NonNull InterceptorRegistry registry) {

//        registry.addInterceptor(new TokenInterceptor());
//        registry.addInterceptor(new TokenInterceptor())
//                .order(0)
//                .addPathPatterns("/student/**");
//        registry.addInterceptor(new DemoInterceptor()).order(3);
    }
}
